from pymongo import MongoClient

conn = MongoClient('127.0.0.1',27017)
db = conn.tk
print(db.fromwx)
key = "韩1版"
ss = db.fromwx.find({"content":{"$regex":key}})
has = False
for s in ss:
    has = True
print(has)
